package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.pojo.EnrollInfo;
import com.example.pojo.Notification;
import com.example.pojo.NotificationReadStatus;
import com.example.pojo.dto.NotificationDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NotificationService {
    List<Notification> notificationList();
    IPage<Notification> getNotificationInfoPage(int currentPage, int limit);

    IPage<Notification> getNotificationByTitleInfoPage(int currentPage, int limit, String title);
    String addOrUpdateNotification(Notification notification);
    String addNotificationForAllParents(Notification notification);
    int deleteNotificationFor(Notification notification);
    int batchNotificationInfo(List<Long> ids);
    String isReadNotification(NotificationReadStatus notificationReadStatus);
    List<NotificationDTO> getNotificationByUserIdAndType(Long userId, Integer notificationType);
    List<NotificationDTO> getNotReadNotificationByUserIdAndType(Long userId, Integer notificationType);


}
